import Vue from 'vue'
import Vuex from 'vuex'
import login from './login'
Vue.use(Vuex)

export default new Vuex.Store({
  state:{
	   routerFalg:false,
	   routeList:["/","/about","/list","/mine"]
  },
  mutations:{
	 showRuter(state,routeAddress){
		  state.routerFalg= state.routeList.some((item,index)=>{
			    return item === routeAddress
		  });
	 }  
  },
  modules: {
    login
  }
})